package com.lx.spring.config.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class Car implements InitializingBean, DisposableBean {


    public Car(){
        System.out.println("car constructor...");
    }

    public Car(Color color){
        System.out.println(color);
        System.out.println("car constructor...");
    }

    public void init(){
        System.out.println("car ... init ... ");
    }

    public void destroy1(){
        System.out.println("car ... destroy1 ... ");
    }

    public void destroy() throws Exception {
        System.out.println("car ... destroy ... ");
    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("car ... afterPropertiesSet ... ");    }
}
